<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"    
	xmlns:p="http://primefaces.org/ui">
	
<ui:composition template="/template.xhtml">
	<ui:define name="content">
		<p:layoutUnit position="west" size="0" style="border:none;">  
	   	</p:layoutUnit>  
		  
	    <p:layoutUnit position="east" size="0" style="border:none;">  
	    </p:layoutUnit>
		    
		<p:layoutUnit position="center" styleClass="telaPrincipal"> 
		   	<h:form>
		    	
		        <p:panelGrid columns="4">
		        	<f:facet name="header">
						<div align="center" class="tituloPrincipal">Cadastro de Aluno</div>
					</f:facet>

            		<p:outputLabel for="matricula" value="Matricula: " />
					<p:inputText id="matricula" value="#{cadastroBean.aluno.matricula}" size="10" />
							
					<p:outputLabel for="dt-nascimento" value="Data de Nascimento: " />
					<p:calendar id="dt-nascimento" readOnlyInputText="true" label="Nascimento" pattern="dd/MM/yyyy" value="#{cadastroBean.aluno.dataNascimento}" 
						navigator="true" mindate="01/01/1930" maxdate="#{cadastroBean.dataAtual}" yearRange="100" display="inline" showOn="button" size="14"/>
						
					<p:outputLabel for="nome" value="Nome: " />
					<p:inputText id="nome" value="#{cadastroBean.aluno.nome}" size="50" />
			
					<p:outputLabel for="local-nasc" value="Local: " />
					<p:inputText id="local-nasc" value="#{cadastroBean.aluno.local}" size="20" />
					
					<p:outputLabel for="filicao-pai" value="Pai: " />
					<p:inputText id="filicao-pai" value="#{cadastroBean.aluno.pai}" size="50" />
					
					<p:outputLabel for="rg" value="RG: " />
					<p:inputMask id="rg" value="#{cadastroBean.aluno.rg}" mask="999.999.999-9" size="20" />
					
					<p:outputLabel for="filicao-mae" value="Mãe: " />
					<p:inputText id="filicao-mae" value="#{cadastroBean.aluno.mae}" size="50" />

					<p:outputLabel for="orgao" value="Órgão: " />
					<p:inputText id="orgao" value="#{cadastroBean.aluno.orgao}" size="20" />

					<p:outputLabel for="dt-expedicao" value="Expedida em: " />
					<p:calendar id="dt-expedicao" readOnlyInputText="true" label="Expedicao" pattern="dd/MM/yyyy" value="#{cadastroBean.aluno.rgExpedida}" size="15"
						navigator="true" mindate="01/01/1930" maxdate="#{cadastroBean.dataAtual}" yearRange="100" display="inline" showOn="button"/>

					<p:outputLabel for="cpf" value="CPF: " />
					<p:inputMask id="cpf" value="#{cadastroBean.aluno.cpf}" mask="999.999.999-99" size="20" />

					<p:outputLabel for="endereco" value="Endereço: " />
					<p:inputText id="endereco" value="#{cadastroBean.aluno.endereco}" size="50" />

					<p:outputLabel for="bairro" value="Bairro: " />
					<p:inputText id="bairro" value="#{cadastroBean.aluno.bairro}" size="20" />

					<p:outputLabel for="cidade" value="Cidade: " />
					<p:inputText id="cidade" value="#{cadastroBean.aluno.cidade}" size="20" />

					<p:outputLabel for="cep" value="CEP: " />
					<p:inputMask id="cep" value="#{cadastroBean.aluno.cep}" mask="99999-999" size="15" />

					<p:outputLabel for="email" value="Email: " />
					<p:inputText id="email" value="#{cadastroBean.aluno.email}" size="50" />

					<p:outputLabel for="estado-civil" value="Estado Civil: " />
					<p:selectOneMenu id="estado-civil" value="#{cadastroBean.aluno.estadoCivil}">
						<f:selectItem itemLabel="Selecione" itemValue="" />
						<f:selectItems value="#{cadastroBean.listaEstadoCivil}" var="civil" itemLabel="#{civil}" itemValue="#{civil}" />
					</p:selectOneMenu>
					
					<p:outputLabel for="grau-instrucao" value="Grau de Instrução: " />
					<p:selectOneMenu id="grau-instrucao" value="#{cadastroBean.aluno.grauInstrucao}">
						<f:selectItem itemLabel="Selecione" itemValue="" />
						<f:selectItems value="#{cadastroBean.listaGrauInstrucao}" var="grau" itemLabel="#{grau}" itemValue="#{grau}"/>
					</p:selectOneMenu>
					
					<p:outputLabel for="tel-res" value="Tel.Res: " />
					<p:inputMask id="tel-res" value="#{cadastroBean.aluno.telResidencial}"  mask="(99) 9999-9999" size="15" placeholder="(xx) xxxx-xxxx" />
					
					<p:outputLabel for="profissao" value="Profissão: " />
					<p:inputText id="profissao" value="#{cadastroBean.aluno.profissao}" size="30" />
					
					<p:outputLabel for="tel-cel" value="Tel.Cel: " />
					<p:inputMask id="tel-cel" value="#{cadastroBean.aluno.telCelular}" mask="(99) 9999-99999" size="15" placeholder="(xx) xxxx-xxxxx" />
					
					<p:outputLabel for="igreja-congrega" value="Igreja que congrega: " />
					<p:inputText id="igreja-congrega" value="#{cadastroBean.aluno.igrejaCongrega}" size="30" />
					
					<p:outputLabel for="radio" value="Radio: " />
					<p:inputText id="radio" value="#{cadastroBean.aluno.telRadio}" size="10" />
			
					<p:outputLabel for="igreja-presidente" value="Nome do Pastor Presid.: " />
					<p:inputText id="igreja-presidente" value="#{cadastroBean.aluno.pastorPresidente}" size="30" />
			
					<p:outputLabel for="igreja-cargo" value="Cargo ou Função na Igreja: " />
					<p:inputText id="igreja-cargo" value="#{cadastroBean.aluno.igrejaCargo}" size="20" />
					
					<p:outputLabel for="igreja-endereco" value="Endereço Igreja:" />
					<p:inputText id="igreja-endereco" value="#{cadastroBean.aluno.igrejaEndereco}" size="50" />
					
					<p:outputLabel for="curso-pretendido" value="Curso Pretendido: " />
					<p:inputText id="curso-pretendido" value="#{cadastroBean.aluno.cursoPretendido}" size="20" />

					<f:facet name="footer">
						<p:separator />
						<div align="right">
							<p:commandButton action="#{cadastroBean.cancelar}" value="Cancelar" icon="ui-icon-close" ajax="false" styleClass="buttonsFooter"/>
					        <p:commandButton action="#{cadastroBean.avancarCadastroMeio}" value="Avançar" icon="ui-icon-seek-next" ajax="false" styleClass="buttonsFooter"/>
						</div>
					</f:facet>
				</p:panelGrid>
		    </h:form>
		</p:layoutUnit>
		
	</ui:define>
</ui:composition>
</html>